package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.OverdueListDO;
import com.mhc.suzuki.dal.query.OverdueListQuery;

import java.util.List;


/**
 * Manager for OverdueList.
 */
public interface OverdueListManager {
    /**
     * query count by query condition.
     */
    int countByQuery(OverdueListQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(OverdueListQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(OverdueListDO record);

    /**
     * insert selective.
     */
    long insertSelective(OverdueListDO record);

    /**
     * select by query condition.
     */
    List<OverdueListDO> selectByQuery(OverdueListQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<OverdueListDO> selectByQueryWithPage(OverdueListQuery query);

    /**
     * select by primary key.
     */
    OverdueListDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( OverdueListDO record,  OverdueListQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(OverdueListDO record, OverdueListQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(OverdueListDO record);
}